// 整体页面

.common-container {
  position: relative;
  // 22  -- tdesign-starter-content-layout padding-bottom
  // 42  -- breadcrumb
  height: calc(100vh - @headerHeight - 42px - 22px);
  padding: 10px 24px 0;
  box-sizing: border-box;

  &.page-container {
    padding-bottom: 44px;
  }

  &.tabs-container {
    padding-top: 32px;
  }

  &.edit-container {
    padding-bottom: 66px;
  }
}

.common-full-page {
  width: 100%;
  height: 100%;
  position: relative;
}

.common-view {
  width: 100%;
  height: 100%;
  position: relative;
  padding: 10px 24px 0;
  box-sizing: border-box;
}

.common-content {
  display: flex;
  margin-top: 12px;

  .common-table-wrap {
    margin-top: 0;
    flex: 1;
  }
}

.common-side-view {
  width: 243px;
  height: 100%;
  background-color: #fff;
  box-shadow: 0 5px 14px 0 rgb(0 0 0 / 10%);
  margin-right: 18px;

  &.large {
    height: calc(100% + 24px);
  }
}

.common-page {
  position: relative;
  padding: 24px 24px 0;
  height: calc(100vh - @headerHeight - 42px - 22px);
  overflow: auto;

  &::-webkit-scrollbar {
    width: 12px;
    height: 12px;
    background: transparent;
  }

  &::-webkit-scrollbar-thumb {
    border-radius: 6px;
    border: 4px solid transparent;
    background-clip: content-box;
    background-color: #ddd;
  }

  &::-webkit-scrollbar-corner {
    width: 0;
  }

  &.detail {
    padding: 30px 12px;
  }

  &.edit {
    height: calc(100vh - @headerHeight - 42px - 22px);
    padding: 30px 12px 110px;

    .form-wrap {
      .t-input {
        min-width: 230px;
      }
    }
  }
}

// kv项数据
.common-item-view {
  padding: 24px 36px;
  margin-bottom: 40px;
  background-color: #fff;

  .item {
    display: flex;
    font-size: 14px;
    width: 100%;

    .label {
      width: 160px;
      color: #333;
    }

    .value {
      color: #666;
      margin-left: 18px;
    }
  }
}

.common-footer {
  height: 66px;
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
